package cn.tl.org.service.impl;

import cn.tl.org.domain.Dept;
import cn.tl.org.domain.Employee;
import cn.tl.org.mapper.DeptMapper;
import cn.tl.org.mapper.EmployeeMapper;
import cn.tl.org.query.DeptQuery;
import cn.tl.org.service.IDeptService;
import cn.tl.org.service.IEmployeeService;
import cn.tl.org.utils.QueryResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class EmployeeServiceImpl implements IEmployeeService {
    @Autowired
    private EmployeeMapper employeeMapper;
    @Override
    public List<Employee> findAll() {
        return employeeMapper.findAll();
    }
}
